package com.qiandao.xuexitong.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.qiandao.xuexitong.enums.AttendanceTypeEnum;

/**
 * <p>
 * 签到任务信息表
 * </p>
 *
 * @author YouJiao
 * @since 2025-04-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("attendance_task")
public class AttendanceTask implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 班级ID
     */
    private Long classroomId;

    /**
     * 教师ID
     */
    @TableField(exist = false)
    private Long teacherId;

    /**
     * 签到类型
     */
    private AttendanceTypeEnum type;

    /**
     * 签到标题
     */
    private String title;

    /**
     * 签到描述
     */
    @TableField(exist = false)
    private String description;
    /**
     * 签到内容
     */
    private String content;

    /**
     * 签到开始时间
     */
    private LocalDateTime startTime;

    /**
     * 签到结束时间
     */
    private LocalDateTime endTime;

    /**
     * 签到状态：0=未结束, 1=已结束
     */
    private Integer status;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(exist = false)
    private LocalDateTime updateTime;

}
